/*
 * config_clock.h
 *
 *  Created on: Sep 18, 2013
 *      Author: Ken Arok
 */

#ifndef CONFIG_CLOCK_H_
#define CONFIG_CLOCK_H_

// ===== System Clock Source Options
#define SYSCLK_SRC_RC16MHZ		0
#define	SYSCLK_SRC_RC8MHZ		1
#define	SYSCLK_SRC_RC4MHZ		2
#define	SYSCLK_SRC_RC2MHZ		3
#define	SYSCLK_SRC_RC1MHZ		4
#define SYSCLK_SRC_RC128KHZ		5
#define	SYSCLK_SRC_XOC12MHZ		6
#define SYSCLK_SRC_OC14MHZ		7
#define	SYSCLK_SRC_EXTERNAL		8


//=====  Select connected clock source
#define  SYSCLK_SOURCE         SYSCLK_SRC_OC14MHZ
//#define SYSCLK_SOURCE        SYSCLK_SRC_RC8MHZ
//#define SYSCLK_SOURCE        SYSCLK_SRC_RC4MHZ
//#define SYSCLK_SOURCE        SYSCLK_SRC_XOC12MHZ
//#define SYSCLK_SOURCE        SYSCLK_SRC_EXTERNAL



// ===== System Clock Bus Division Options
#define CONFIG_SYSCLK_PSDIV         SYSCLK_PSDIV_1

#define CONFIG_SYSCLK_ENABLE_DIV	1

#endif /* CONFIG_CLOCK_H_ */
